package com.yhgarden.bbs.mapper.system;

import com.yhgarden.bbs.entity.system.Button;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
* @author Laijiaxiang
* @since 2019-09-17
*/
public interface ButtonMapper  {

    public int create(Button button);

    public int update(Button button);

    public Button getById(@Param("id") String id);

    public Button getByIdForList(@Param("id") String id);

    public Button getByIdMoreDetail(@Param("id") String id);

    public int queryCount(@Param("example") Button button);

    public List<Button> query(@Param("example") Button button,
                              @Param("order") String order,
                              @Param("field") String field);

    public List<Button> queryForList(@Param("example") Button button,
                                     @Param("order") String order,
                                     @Param("field") String field);

    public List<Button> queryMoreDetail(@Param("example") Button button,
                                        @Param("order") String order,
                                        @Param("field") String field);

    public int delete(@Param("id") String id);

    public int deleteByExample(@Param("example") Button button);

    public int batchDelete(@Param("ids") List<String> ids);

}

